Skip to content

constants

Constants.

Attributes⚓︎

CACHE_README_TEXT module-attribute ⚓︎

CACHE_README_TEXT = '# Pytest Assert Cache\n\nThis folder is automatically generated by `pytest_cache_assert`.\n\nFiles can be regenerated by deleting and allowing `pytest_cache_assert` to recreate them when next running the test suite.\n'

README content for the cache directory.

DEF_CACHE_DIR_NAME module-attribute ⚓︎

DEF_CACHE_DIR_NAME = 'assert-cache'

Default pytest_assert_cache directory name.

KEY_NAME_DATA module-attribute ⚓︎

KEY_NAME_DATA = '_json'

Key for cached data.

KEY_NAME_META module-attribute ⚓︎

KEY_NAME_META = '_info'

Key for metadata.

T_CONVERTER module-attribute ⚓︎

T_CONVERTER = Callable[[Any], T_SER]

Generic type for converters with a single argument.

T_DIFF module-attribute ⚓︎

T_DIFF = Any

Possible Old or New difference type.

T_SER module-attribute ⚓︎

T_SER = Optional[Union[str, int, float, bool, List, Dict]]

JSON-Serializable types.


Last update: August 30, 2023
Created: August 30, 2023